package rentadomus

class Dwelling{

    Place idPlace
    boolean furnished
    int bedrooms
    int baths
    int parkingSlots
    int block
    int interior
    String kitchenType
    
    static constraints = {
        bedrooms blank:false, min:1
        baths blank:false, min: 1
        interior blank:false, min: 1
        kitchenType blank: false, inList:["Integral", "Conventional", "American"]
    }
    
    static mapping ={
        version false
        idPlace column: 'id_place'
        kitchenType column: 'kitchen_type'
        parkingSlots column:'parking_slots'
    }
}
